package cn.yunlang.zhangZhongFei.base.pay.wxpay.common;

/**
 * @Author ZhangKeChen
 * @Date 2022/11/3
 * @Description
 */

/**
 * 微信小程序请求地址配置
 */
public class WechatJSAPIGetMsgUrlConstants {
    /**
     * 用code获取openid请求地址
     */
    public static String GetOpenIdByCode = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";
    /**
     * 用appid和secret获取access_token请求地址
     */
    public static String GetAccessTokenByCode = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
    /**
     * 使用access_token获取手机号码请求地址
     */
    public static String GetPhoneByAccessToken = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s";

}
